package ModelLayer;

import java.sql.Date;
import java.util.ArrayList;


public class Order {
	public int costumerID;
	public Date regDate;
	public Date deliveryDate;
	public String status;
	public String totalPrice;
	public ArrayList<partOrder> PartOrder;
	
	public Order(int costumerID, Date regDate, Date deliveryDate, String status, String totalPrice)
	{ 
		this.costumerID = costumerID;
		this.regDate = regDate;
		this.deliveryDate = deliveryDate;
		this.status = status;
		this.totalPrice = totalPrice;
		this.costumerID = costumerID;
		PartOrder = new ArrayList<partOrder>();
	
	}

	public int getCostumerID() {
		return costumerID;
	}
	public void setCostumerID(int costumerID) {
		this.costumerID = costumerID;
	}
	public Date getRegDate() {
		return regDate;
	}
	public void setRegDate(Date regDate) {
		this.regDate = regDate;
	}
	public Date getDeliveryDate() {
		return deliveryDate;
	}
	public void setDeliveryDate(Date deliveryDate) {
		this.deliveryDate = deliveryDate;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getTotalPrice() {
		return totalPrice;
	}
	public void setTotalPrice(String totalPrice) {
		this.totalPrice = totalPrice;
	}
//	 public void calcTotalPrice()
//	    {
//	        int i = 0;
//	        double totalPrice = 0;
//			partOrderPrice double = PartOrder.get(i).getProductID()
//	        while(i < PartOrder.size())
//	        {
//	        	
//	        		totalPrice = (totalPrice + PartOrder.get(i).getProductID() * PartOrder.get(i).getQuantity());
//	        		i++;
//	        	}
//	        }
//	        this.totalPrice = totalPrice;
//	    }

}
